package com.kxmall.web.controller.notice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.kxmall.system.domain.SysNotice;
import com.kxmall.system.mapper.SysNoticeMapper;
import com.kxmall.web.controller.notice.service.IKxNoticetService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */

@RequiredArgsConstructor
@Service
public class KxNoticetService implements IKxNoticetService {

    @Autowired
    private SysNoticeMapper noticeMapper;

    @Override
    public List<SysNotice> queryList(SysNotice bo) {
        return noticeMapper.selectList(new LambdaQueryWrapper<SysNotice>().eq(SysNotice::getStatus, "0"));
    }
}
